package com.cycle.community.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cycle.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lenovo
 * @create 2022/8/14 22:29
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    //支持分页查询
    List<Comment> selectCommentsByEntity(int entityType, long entityId, int offset, int limit);

    int selectCountByEntity(int entityType, long entityId);

    //insert
    //select

}
